package com.ymk.base.mybatis;


import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Pagination {
    private int start = 0;
    private int pageTotal = 0;
    private int pageIndex = 1;
    private int pageSize = 15;
    private boolean nextPage;
    private boolean previousPage;
    private String otherParams;
    private List<?> results;
    private Map<String, Object> params = new HashMap();

    public Pagination() {
    }

    public int getStart() {
        return this.start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getPageTotal() {
        return pageTotal;
    }

    public void setPageTotal(int pageTotal) {
        this.pageTotal = pageTotal;
    }

    public int getPageIndex() {
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public Map<String, Object> getParams() {
        return this.params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }

    public boolean isNextPage() {
        return this.nextPage;
    }

    public void setNextPage(boolean nextPage) {
        this.nextPage = nextPage;
    }

    public boolean isPreviousPage() {
        return this.previousPage;
    }

    public void setPreviousPage(boolean previousPage) {
        this.previousPage = previousPage;
    }

    public String getOtherParams() {
        return this.otherParams;
    }

    public void setOtherParams(String otherParams) {
        this.otherParams = otherParams;
    }

    public List<?> getResults() {
        return this.results;
    }

    public void setResults(List<?> results) {
        this.results = results;
    }
}
